package com.jml.redis.一二级缓存.mapper;

import com.jml.redis.一二级缓存.entity.Users;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.cache.annotation.CacheConfig;

@Mapper
@CacheConfig(cacheNames = { "userCache" })
public interface UserMapper {
	@Select("SELECT ID ,NAME,AGE FROM sys_mean where id=#{id}")
	Users getUser(@Param("id") Long id);
}
